package com.ruoyi.web.vo;

import lombok.Data;
import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang3.StringUtils;

import java.util.List;

/**
 * Created by admin on 2025/6/13.
 */
@Data
public class CommandResultVo {
    private String rightResult;
    private String errorResult;
    private List<String> otherResults = Lists.newArrayList();

    public boolean hasError(){
        return StringUtils.isNotBlank(errorResult);
    }

    public boolean hasRight(){
        return StringUtils.isNotBlank(rightResult);
    }

    public void addOtherResult(String otherResult){
        otherResults.add(otherResult);
    }


}
